package com.yh.merchant.api;

import com.huiminpay.common.cache.exception.BusinessException;
import com.yh.merchant.dto.AppDTO;

import java.util.List;

/**
 * @Author: HWW
 * @Date: 2021/8/2323:16
 * @Desc:
 */
public interface AppServiceApi {

    /**
     * 商户创建应用
     * @param merchantId
     * @param app
     * @return
     * @throws BusinessException
     */
    AppDTO createApp(Long merchantId, AppDTO app) throws BusinessException;

    List<AppDTO> findApps(Long merchantId);

    AppDTO findAppByAppId(String appId);

    /**
     \* 查询门店是否属于某商户
     \* @param storeId
     \* @param merchantId
     \* @return
     */
    Boolean checkStoreApp2Merchant(String appId,Long storeId, Long merchantId);
}
